package br.com.utfpr.menu;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class PessoaOpenHelper extends SQLiteOpenHelper {

    private static final int DATABASE_VERSION = 1;
    private static final String PESSOA_TABLE_NAME = "clientes";
    private static final String PESSOA_TABLE_CREATE =
                "CREATE TABLE " + PESSOA_TABLE_NAME + " ("
                + "id INTEGER PRIMARY KEY AUTOINCREMENT, " +
                "nome" + " TEXT, " +
                "endereco" + " TEXT," 
                		+ "rg " + " TEXT " + ");";

    PessoaOpenHelper(Context context) {
        super(context, "xpto.db", null, DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(PESSOA_TABLE_CREATE);
		System.out.println("Criado");
    }

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		// TODO Auto-generated method stub
	}
}
